#include "converter.h"

#include <stdlib.h>
#include <sstream>
#include <algorithm>
#include <cctype>

string Converter::string_lower( string f_string )
{
	std::transform( f_string.begin(), f_string.end(), f_string.begin(), (int(*)(int)) std::tolower );
	return f_string;
}

string Converter::double_string( double f_number )
{
	std::stringstream f_tmp;
	f_tmp << f_number;

	return f_tmp.str();
}

double Converter::string_double( string f_string )
{
	return atof( f_string.c_str() );
}
